home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q33378 < prev    next >
Text File  |  1988-08-05  |  2KB  |  47 lines

  1. Q33378 /Fs Does Not Correctly Align Comments in Listing
  2. C Compiler
  3. 5.00 5.10 | 5.10
  4. MS-DOS    | OS/2
  5.  
  6. Summary:
  7.    The compiler option /Fs produces a listing in which comments
  8. preceded by blank spaces and/or tabs are not aligned in the same
  9. columns as they are in the source file; instead, they are offset to
  10. the left by one column.
  11.    Comments that are preceded by code on the same line are not
  12. offset. Code that is preceded by blank spaces or tabs is not offset.
  13.    Microsoft has confirmed this to be a problem in Version 5.10. We
  14. are researching this problem and will post new information as it
  15. becomes available.
  16.    The following code demonstrates the problem:
  17.  
  18. #define x 1                             /*comment*/
  19.                                         /*comment*/
  20. int y;                                  /*comment*/
  21.  int z;                                 /*comment*/
  22.  
  23. void main(void);
  24. void main(void)
  25. {
  26. }
  27.  
  28. More Information:
  29.    The following is part of the /Fs listing:
  30.  
  31.       1  #define x 1                             /*comment*/
  32.       2                                         /*comment*/
  33.       3  int y;                                  /*comment*/
  34.       4   int z;                                 /*comment*/
  35.       5
  36.       6  void main(void);
  37.       7  void main(void)
  38.       8  {
  39.       9  }
  40.  
  41.    This problem is encountered if you have a combination of tabs and
  42. spaces because the listing that is generated starts in column 9 rather
  43. than column 8, which causes tabs to be misaligned.
  44.  
  45. Keywords:  buglist5.10
  46. Updated  88/08/05 11:14
  47.